package com.cybertron.ironhide.spider;

import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.cybertron.ironhide.spider.domain.TaskUrl;
import com.cybertron.ironhide.spider.fetcher.FetchResult;
import com.cybertron.ironhide.spider.fetcher.Page;
import com.cybertron.ironhide.spider.task.Task;
import com.cybertron.ironhide.spider.xml.Site;

/**
 * 爬虫监听适配器
 * 
 * @author weiwei l.weiwei@163.com
 * @date 2013-1-7 上午11:39:57
 */
public class SpiderListenerAdaptor implements SpiderListener {
	public void onDigUrls(Thread thread, Task task, String fieldName,
			List<TaskUrl> urls) {
	}

	public void onFetch(Thread thread, Task task, FetchResult result) {
	}

	public void onNewUrls(Thread thread, Task task, List<TaskUrl> newUrls) {
	}

	public void onDupRemoval(Thread currentThread, Task task,
			Collection<Task> validTasks) {
	}

	public void onTaskSort(Thread currentThread, Task task,
			Collection<Task> afterSortTasks) {
	}

	public void onNewTasks(Thread thread, Task task, Collection<Task> newTasks) {
	}

	public void onTargetPage(Thread thread, Task task, Page page) {
	}

	public void onParse(Thread thread, Task task,
			List<Map<String, Object>> models) {
	}

	public void onPojo(Thread thread, Task task, List<Object> pojos) {
	}

	public void onInfo(Thread thread, Task task, String info) {
	}

	public void onError(Thread thread, Task task, String err, Throwable e) {
	}

	public void onAfterScheduleCancel() {
	}

	public void onBeforeEveryScheduleExecute(Date theLastTimeScheduledAt) {
	}

	public void onBeforeShutdown() {
	}

	public void onAfterShutdown() {
	}

	public void onBeforeShutdown(Site site) {
	}

	public void onAfterShutdown(Site site) {
	}

	public void onAllComplete(Site site) {
	}

}
